//
//  FirstSmallerDetailModel.m
//  BTRIP
//
//  Created by dllo on 15/11/14.
//  Copyright © 2015年 johnbk. All rights reserved.
//

#import "FirstSmallerDetailModel.h"
#import "FirstLastDetailModel.h"
@implementation FirstSmallerDetailModel
- (void)setValue:(id)value forKey:(NSString *)key{
    if ([key isEqualToString:@"notes"]) {
        NSArray *array = (NSArray *)value;
        NSMutableArray *smallerArray = [NSMutableArray array];
        for (NSDictionary *dic in array) {
            FirstLastDetailModel *last = [[FirstLastDetailModel alloc]init];
            [last setValuesForKeysWithDictionary:dic];
            [smallerArray addObject:last];
            [last release];
        }
        _notes = [smallerArray copy];
    }else{
        [super setValue:value forKey:key]; 
    }
}





@end
